91d7f13db7b52d68230ecf12cbdab6687964304e,source/org/jasig/portal/channels/UserPreferences/GPreferencesState.java,GGlobalPrefsState,renderXML,#ContentHandler#,567
Before Change
if (set == null)
throw new GeneralRenderingException("Unable to determine the stylesheet list");
String xslURI = null;
xslURI = set.getStylesheetURI("editGPrefs", runtimeData.getBrowserInfo());
Hashtable params = new Hashtable();
params.put("baseActionURL", runtimeData.getBaseActionURL());
if (xslURI != null) {
try {
XSLT.transform(doc, new URL(xslURI), out, params);
} catch (java.io.IOException i) {
throw new GeneralRenderingException("IOException has been encountered");
}
}
else
After Change
StylesheetSet set = context.getStylesheetSet();
if (set == null)
throw new GeneralRenderingException("Unable to determine the stylesheet list");
String xslURI = set.getStylesheetURI("editGPrefs", runtimeData.getBrowserInfo());
if (xslURI != null) {
XSLT xslt = new XSLT();
xslt.setXML(doc);
xslt.setXSL(xslURI);
xslt.setTarget(out);
xslt.setStylesheetParameter("baseActionURL", runtimeData.getBaseActionURL());
xslt.transform();
}
else
throw new ResourceMissingException("", "stylesheet", "Unable to find stylesheet to display content for this media");